home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "Module1"
- Sub Main()
- Dim MeinIE
- Eingabe = Form1.Text1.Text
- Set MeinIE = CreateObject("InternetExplorer.Application")
-
- Do While MeinIE.Busy
- Loop
-
- MeinIE.Visible = 0
-
- MeinIE.Navigate "http://www.chemie.fu-berlin.de/cgi-bin/acronym?" & Eingabe
-
- Do While MeinIE.ReadyState <> 4
- Loop
-
- Text_von_IE = MeinIE.Document.Body.innerText
- MyPos = InStr(Text_von_IE, "Results for")
-
- If Len(Text_von_IE) = MyPos + 11 + Len(Eingabe) Then
- Form1.Text2.Text = ("Keine Suchergebnise gefunden!")
- Form1.Show
- Else
- Rechter_Teil = Right(Text_von_IE, Len(Text_von_IE) - MyPos - 11 - Len(Eingabe))
- Form1.Text2.Text = Rechter_Teil
- Form1.Show
- End If
-
- MeinIE.Quit
-
- End Sub
-